package io.seata.sharding4.common.enums;

/**
 * 响应状态枚举
 *
 * @author Administrator
 */
public enum RspStatusEnum {
    SUCCESS(200, "成功"),
    FAIL(9999, "失败"),
    EXCEPTION(500, "系统异常");

    private int code;
    private String message;

    RspStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
